package org.ala.tiktools.rpc.client_server.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.ApplicationContext;

import io.netty.channel.Channel;

/**
 * 服务端接收器，负责接受远端链接请求
 *
 * @author ala
 * @date 2025-04-07 14:51
 */
public interface IRpcServiceReceiver extends DisposableBean {
    /**
     *  初始化方法
     */
    Channel init(ApplicationContext context);
    /**
     *  追加ServiceMethodMapper
     */
    void setExecutor(RpcServiceExecutor serviceExecutor);
}
